import java.io.IOException;


public class Player {
    private String playerSymbol;
    private GameBoard gameBoard;
    private ValidInputGetter validInputGetter;

    public Player(String playerSymbol, GameBoard gameBoard, ValidInputGetter validInputGetter) {
        this.playerSymbol =  playerSymbol;
        this.gameBoard = gameBoard;

        this.validInputGetter = validInputGetter;
    }

    public void turn() throws IOException {
        int userInput = validInputGetter.getValidInput();

        this.gameBoard.addAt(userInput, playerSymbol);
    }
}
